Immunize against more undocumented Garmin packet types. (Tested on Vista with 3.60.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Sat, 12 Jun 2004 01:39:17 +0000 (01:39 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Sat, 12 Jun 2004 01:39:17 +0000 (01:39 +0000)
gpsbabel/jeeps/gpsapp.c

index 29e6d6d3d5155ac54116b875325ceb9f8116900f..6c30003eaf1c3dee89c53bac90d9f41b16ea7b1e 100644 (file)
@@ -375,10 +375,13 @@ static void GPS_A001(GPS_PPacket packet)
            }
            else if(data<900)
            {
-               if(data!=800)
-                   GPS_Protocol_Error(tag,data);
-               else
+               if (data == 800)
                    gps_pvt_transfer = pA800;
+               /*
+                * Undocumented A802 packets introduced on Vista 3.60 f/w.
+                * else  
+                *  GPS_Protocol_Error(tag,data);
+                */
                continue;
            }
            else if (data < 1000)
@@ -542,10 +545,13 @@ static void GPS_A001(GPS_PPacket packet)
            }
            else if(lasta<900)
            {
-               if(data!=800)
-                   GPS_Protocol_Error(tag,data);
-               else
+               if (data == 800)
                    gps_pvt_type = pD800;
+               /*
+                *  Stupid, undocumented Vista 3.60 D802 packets 
+                else
+                   GPS_Protocol_Error(tag,data);
+                */
                continue;
            }